package com.tempjob.common.businesss.mongo.entity;

import com.anwen.mongo.annotation.ID;
import com.anwen.mongo.annotation.collection.CollectionField;
import com.anwen.mongo.annotation.collection.CollectionName;
import com.anwen.mongo.enums.IdTypeEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 教育经历
 *
 * @author hui
 * @Date 2024/12/2 23:12
 **/
@CollectionName(value = "user_educational")
@Data
public class UserEducation {

    @ID(type = IdTypeEnum.OBJECT_ID)
    @CollectionField("_id")
    private String id;

    @CollectionField("user_id")
    @ApiModelProperty("用户id")
    private String userId;

    @CollectionField("school_name")
    @ApiModelProperty("机构学校名称")
    private String schoolName;

    @CollectionField("major")
    @ApiModelProperty("专业")
    private String major;

    @CollectionField("start_time")
    @ApiModelProperty("开始时间yyyy-MM")
    @DateTimeFormat(pattern = "yyyy-MM")
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    private Date startTime;

    @CollectionField("end_time")
    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = "yyyy-MM")
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    private Date endTime;

    @CollectionField("degree")
    @ApiModelProperty("学位")
    private String degree;

    @ApiModelProperty("获得证书照片")
    @CollectionField("certificate_photo")
    private String certificatePhoto;

}
